package org.jeecg.modules.front.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.sql.Timestamp;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 工单表
 * </p>
 *
 * @author 
 * @since 2021-08-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("work_order")
@ApiModel(value="WorkOrder对象", description="工单表")
public class WorkOrder implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "工单ID，使用uuid")
    @TableId(value = "work_id", type = IdType.AUTO)
    private String workId;

    @ApiModelProperty(value = "工单编号【以g开头，拼接时间戳，再加5位数随机数】")
    private String workNo;

    @ApiModelProperty(value = "工单名称")
    private String workName;

    @ApiModelProperty(value = "客户名称")
    private String workCustomer;

    @ApiModelProperty(value = "客户手机号")
    private String workPhone;

    @ApiModelProperty(value = "客户地址")
    private String workAddress;

    @ApiModelProperty(value = "客户反馈")
    private String workFeedback;

    @ApiModelProperty(value = "工单状态，连接数据字典表，1：未分配，2：已分配 3：待处理  4：已完成")
    private Integer workDistribution;

    @ApiModelProperty(value = "工单预期开始时间 根据该时间进行人员分配")
    private Timestamp workTime;

    @ApiModelProperty(value = "工单开始时间")
    private Timestamp workStart;

    @ApiModelProperty(value = "工单结束时间")
    private Timestamp workEnd;

    @ApiModelProperty(value = "工单紧急程度")
    private Integer workUrgent;

    @ApiModelProperty(value = "工单完成时间")
    private Timestamp workComplete;

    @ApiModelProperty(value = "工单类型ID")
    private String workType;

    @ApiModelProperty(value = "创建人")
    private String createBy;

    @ApiModelProperty(value = "创建日期")
    private Timestamp createTime;

    @ApiModelProperty(value = "更新人")
    private String updateBy;

    @ApiModelProperty(value = "更新日期")
    private Timestamp updateTime;


}
